package com.loong.common.enumerate;

/**
 * @Description: 订单状态机
 * @Author: hzp
 * @Date: 2020-12-31 10:20
 */
public enum  OrderStatus {

    WAITING_PAYMENT(1,"待支付"),
    WAITING_SELLER_RECEIVE(2,"商家待接单"),
    //货到付款的状态
    WAITING_PAYMENT_AND_IN_DELIVERY(3,"待支付，配送中");


    private int code;
    private String desc;

    OrderStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
